import java.util.ArrayList;

public class Test3 {
    public static void main(String[] args) {
        String str ="welcome to bit";
        String str1 = "come";
        ArrayList<Character> arrayList = new ArrayList<>();
        for (int i = 0; i < str.length(); i++) {
            char ch = str.charAt(i);
            if (!str1.contains(ch+"")){
                arrayList.add(ch);
            }
        }
        System.out.println(arrayList);
    }
}
